<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>bn::ostringstream class | Butano Docs</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
  <link rel="stylesheet" href="m-dark+documentation.compiled.css" />
  <link rel="icon" href="favicon-dark.png" type="image/png" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="theme-color" content="#22272e" />
</head>
<body>
<header><nav id="navigation">
  <div class="m-container">
    <div class="m-row">
      <span id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">
        <a href="https://github.com/GValiente/butano">Butano</a> <span class="m-breadcrumb">|</span> <a href="index.html" class="m-thin">Docs</a>
      </span>
      <div class="m-col-t-4 m-hide-m m-text-right m-nopadr">
        <a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
          <path id="m-doc-search-icon-path" d="m6 0c-3.31 0-6 2.69-6 6 0 3.31 2.69 6 6 6 1.49 0 2.85-0.541 3.89-1.44-0.0164 0.338 0.147 0.759 0.5 1.15l3.22 3.79c0.552 0.614 1.45 0.665 2 0.115 0.55-0.55 0.499-1.45-0.115-2l-3.79-3.22c-0.392-0.353-0.812-0.515-1.15-0.5 0.895-1.05 1.44-2.41 1.44-3.89 0-3.31-2.69-6-6-6zm0 1.56a4.44 4.44 0 0 1 4.44 4.44 4.44 4.44 0 0 1-4.44 4.44 4.44 4.44 0 0 1-4.44-4.44 4.44 4.44 0 0 1 4.44-4.44z"/>
        </svg></a>
        <a id="m-navbar-show" href="#navigation" title="Show navigation"></a>
        <a id="m-navbar-hide" href="#" title="Hide navigation"></a>
      </div>
      <div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
        <div class="m-row">
          <ol class="m-col-t-6 m-col-m-none">
            <li><a href="pages.html">Pages</a></li>
            <li><a href="modules.html">Modules</a></li>
          </ol>
          <ol class="m-col-t-6 m-col-m-none" start="3">
            <li><a href="namespaces.html">Namespaces</a></li>
            <li><a href="annotated.html">Classes</a></li>
            <li><a href="files.html">Files</a></li>
            <li class="m-show-m"><a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
              <use href="#m-doc-search-icon-path" />
            </svg></a></li>
          </ol>
        </div>
      </div>
    </div>
  </div>
</nav></header>
<main><article>
  <div class="m-container m-container-inflatable">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <h1>
          <span class="m-breadcrumb"><a href="namespacebn.html">bn</a>::<wbr/></span>ostringstream <span class="m-thin">class</span>
          <div class="m-doc-include m-code m-inverted m-text-right"><span class="cp">#include</span> <a class="cpf" href="bn__sstream_8h.html">&lt;bn_sstream.h&gt;</a></div>
        </h1>
        <p>Implements output operations on string based streams.</p>
        <nav class="m-block m-default">
          <h3>Contents</h3>
          <ul>
            <li>
              Reference
              <ul>
                <li><a href="#typeless-methods">Constructors, destructors, conversion operators</a></li>
                <li><a href="#pub-methods">Public functions</a></li>
                <li><a href="#friends">Friends</a></li>
              </ul>
            </li>
          </ul>
        </nav>
<p>It effectively stores an instance of <a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a> and performs output operations to it.</p>
        <section id="typeless-methods">
          <h2><a href="#typeless-methods">Constructors, destructors, conversion operators</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#a8f81521ccd1120d85689c073c59ce0eb" class="m-doc">ostringstream</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a>&amp; string) <span class="m-label m-flat m-info">explicit</span> </span>
            </dt>
            <dd>Constructor.</dd>
          </dl>
        </section>
        <section id="pub-methods">
          <h2><a href="#pub-methods">Public functions</a></h2>
          <dl class="m-doc">
            <dt id="a2e520368043f01103fad4d7efcb30f81">
              <span class="m-doc-wrap-bumper">auto <a href="#a2e520368043f01103fad4d7efcb30f81" class="m-doc-self">str</a>(</span><span class="m-doc-wrap">) const -&gt; const <a href="classbn_1_1istring.html" class="m-doc">istring</a>&amp;</span>
            </dt>
            <dd>Returns a const reference to the managed string.</dd>
            <dt id="a37c0792caa91000f04d277f3fd8ddd27">
              <span class="m-doc-wrap-bumper">auto <a href="#a37c0792caa91000f04d277f3fd8ddd27" class="m-doc-self">str</a>(</span><span class="m-doc-wrap">) -&gt; <a href="classbn_1_1istring.html" class="m-doc">istring</a>&amp;</span>
            </dt>
            <dd>Returns a reference to the managed string.</dd>
            <dt id="aa072bb6352550f73a7fd906be7d04789">
              <span class="m-doc-wrap-bumper">auto <a href="#aa072bb6352550f73a7fd906be7d04789" class="m-doc-self">rdbuf</a>(</span><span class="m-doc-wrap">) const -&gt; const <a href="classbn_1_1istring.html" class="m-doc">istring</a>*</span>
            </dt>
            <dd>Returns a const pointer to the managed string.</dd>
            <dt id="a5ff344cea32256cfaee53ef215d11d8e">
              <span class="m-doc-wrap-bumper">auto <a href="#a5ff344cea32256cfaee53ef215d11d8e" class="m-doc-self">rdbuf</a>(</span><span class="m-doc-wrap">) -&gt; <a href="classbn_1_1istring.html" class="m-doc">istring</a>*</span>
            </dt>
            <dd>Returns a pointer to the managed string.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#af31fbcf36483f91f4cf50b32c4b67579" class="m-doc">rdbuf</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a>* sb) -&gt; <a href="classbn_1_1istring.html" class="m-doc">istring</a>*</span>
            </dt>
            <dd>Sets the managed string.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a514dc82cfe5f5792f4c09523b13017e9" class="m-doc">set_rdbuf</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a>&amp; sb)</span>
            </dt>
            <dd>Sets the managed string.</dd>
            <dt id="a29cbfdc85d4d6f53de41c0b6cd145dbb">
              <span class="m-doc-wrap-bumper">auto <a href="#a29cbfdc85d4d6f53de41c0b6cd145dbb" class="m-doc-self">precision</a>(</span><span class="m-doc-wrap">) const -&gt; int</span>
            </dt>
            <dd>Returns the decimal precision of fixed point operations.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a58e80e461395697f4fe6970ac6dafd12" class="m-doc">precision</a>(</span><span class="m-doc-wrap">int new_precision) -&gt; int</span>
            </dt>
            <dd>Sets the decimal precision of fixed point operations.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#ad120c5053dc02170f63f4c67745541cb" class="m-doc">set_precision</a>(</span><span class="m-doc-wrap">int precision)</span>
            </dt>
            <dd>Sets the decimal precision of fixed point operations.</dd>
            <dt id="a0b5048725aa7ec5207b86db784135ae3">
              <span class="m-doc-wrap-bumper">auto <a href="#a0b5048725aa7ec5207b86db784135ae3" class="m-doc-self">view</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a></span>
            </dt>
            <dd>Returns a view over the contents of the managed string.</dd>
            <dt id="adac72d67097ce3488263c8dfae7b64f2">
              <span class="m-doc-wrap-bumper">auto <a href="#adac72d67097ce3488263c8dfae7b64f2" class="m-doc-self">size</a>(</span><span class="m-doc-wrap">) const -&gt; int</span>
            </dt>
            <dd>Returns the number of characters in the managed string.</dd>
            <dt id="aa5e231f1f30761452f707149f1fbc4ba">
              <span class="m-doc-wrap-bumper">auto <a href="#aa5e231f1f30761452f707149f1fbc4ba" class="m-doc-self">length</a>(</span><span class="m-doc-wrap">) const -&gt; int</span>
            </dt>
            <dd>Returns the number of characters in the managed string.</dd>
            <dt id="a7a9aacf3693375e8430a7ad3a3b2eb28">
              <span class="m-doc-wrap-bumper">auto <a href="#a7a9aacf3693375e8430a7ad3a3b2eb28" class="m-doc-self">max_size</a>(</span><span class="m-doc-wrap">) const -&gt; int</span>
            </dt>
            <dd>Returns the maximum possible number of characters in the managed string.</dd>
            <dt id="a1fc6b944d46857237ff1a1ddda2ef0ee">
              <span class="m-doc-wrap-bumper">auto <a href="#a1fc6b944d46857237ff1a1ddda2ef0ee" class="m-doc-self">available</a>(</span><span class="m-doc-wrap">) const -&gt; int</span>
            </dt>
            <dd>Returns the remaining characters capacity in the managed string.</dd>
            <dt id="adceed73d2c7467bb42e203501e2e1e6d">
              <span class="m-doc-wrap-bumper">auto <a href="#adceed73d2c7467bb42e203501e2e1e6d" class="m-doc-self">empty</a>(</span><span class="m-doc-wrap">) const -&gt; bool</span>
            </dt>
            <dd>Indicates if the managed string doesn&#x27;t contain any character.</dd>
            <dt id="afba3f9ff93f625edeb55e8959e69cecd">
              <span class="m-doc-wrap-bumper">auto <a href="#afba3f9ff93f625edeb55e8959e69cecd" class="m-doc-self">full</a>(</span><span class="m-doc-wrap">) const -&gt; bool</span>
            </dt>
            <dd>Indicates if the managed string can&#x27;t contain any more characters.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#aa13ca7b94ff67d807335b7769de65ac1" class="m-doc">append</a>(</span><span class="m-doc-wrap">char character)</span>
            </dt>
            <dd>Appends an additional character to the managed string.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#afc1690ecd21cfd32026425d727880d83" class="m-doc">put</a>(</span><span class="m-doc-wrap">char character) -&gt; <a href="classbn_1_1ostringstream.html" class="m-doc">ostringstream</a>&amp;</span>
            </dt>
            <dd>Appends an additional character to the managed string.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a4548d6e10b5f811b132888e04e5ffe67" class="m-doc">append</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; view)</span>
            </dt>
            <dd>Appends additional characters to the managed string.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a7ddce029580f612a453b995f8bd5b7c9" class="m-doc">append</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a>&amp; string)</span>
            </dt>
            <dd>Appends additional characters to the managed string.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#aeb274c577acdeda96abd00c930e67e78" class="m-doc">append</a>(</span><span class="m-doc-wrap">const char* char_array_ptr)</span>
            </dt>
            <dd>Appends additional characters to the managed string.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a4a3c950042f60f95716033d192814b69" class="m-doc">append</a>(</span><span class="m-doc-wrap">const char* char_array_ptr,
              int char_array_size)</span>
            </dt>
            <dd>Appends additional characters to the managed string.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#a3a81085c301435870815540918cd7755" class="m-doc">write</a>(</span><span class="m-doc-wrap">const char* char_array_ptr,
              int char_array_size) -&gt; <a href="classbn_1_1ostringstream.html" class="m-doc">ostringstream</a>&amp;</span>
            </dt>
            <dd>Appends additional characters to the managed string.</dd>
            <dt>
              <div class="m-doc-template">template&lt;int MaxSize&gt;</div>
              <span class="m-doc-wrap-bumper">void <a href="#a489514e2ce5b7ca00b70b323b1612d63" class="m-doc">append</a>(</span><span class="m-doc-wrap">char(&amp;char_array)[MaxSize])</span>
            </dt>
            <dd>Appends additional characters to the managed string.</dd>
            <dt id="a38f4a02f7540329abb9d6bb712e4a921">
              <span class="m-doc-wrap-bumper">void <a href="#a38f4a02f7540329abb9d6bb712e4a921" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">bool value)</span>
            </dt>
            <dd>Appends the character representation of the given bool value to the managed string.</dd>
            <dt id="a04f7613b3523e7bd9a5c6eb34131f5f5">
              <span class="m-doc-wrap-bumper">void <a href="#a04f7613b3523e7bd9a5c6eb34131f5f5" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">int value)</span>
            </dt>
            <dd>Appends the character representation of the given int value to the managed string.</dd>
            <dt id="a90f2b4b057cfc6ab73579844d5491df8">
              <span class="m-doc-wrap-bumper">void <a href="#a90f2b4b057cfc6ab73579844d5491df8" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">long value)</span>
            </dt>
            <dd>Appends the character representation of the given long value to the managed string.</dd>
            <dt id="ad9d1f7d832862ac053b26a3b0e7032a1">
              <span class="m-doc-wrap-bumper">void <a href="#ad9d1f7d832862ac053b26a3b0e7032a1" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">int64_t value)</span>
            </dt>
            <dd>Appends the character representation of the given int64_t value to the managed string.</dd>
            <dt id="a1486022a3f0199bf3e595fee77ec181f">
              <span class="m-doc-wrap-bumper">void <a href="#a1486022a3f0199bf3e595fee77ec181f" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">unsigned value)</span>
            </dt>
            <dd>Appends the character representation of the given unsigned value to the managed string.</dd>
            <dt id="a92e1b686eb3b1f36dbe2d4e3529d3e60">
              <span class="m-doc-wrap-bumper">void <a href="#a92e1b686eb3b1f36dbe2d4e3529d3e60" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">unsigned long value)</span>
            </dt>
            <dd>Appends the character representation of the given unsigned long value to the managed string.</dd>
            <dt id="a7bacaf518251b06f9a8219188d8ebcce">
              <span class="m-doc-wrap-bumper">void <a href="#a7bacaf518251b06f9a8219188d8ebcce" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">uint64_t value)</span>
            </dt>
            <dd>Appends the character representation of the given uint64_t value to the managed string.</dd>
            <dt id="ab0492c05e4bf302fbd92735ef29d36d5">
              <span class="m-doc-wrap-bumper">void <a href="#ab0492c05e4bf302fbd92735ef29d36d5" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">const void* ptr)</span>
            </dt>
            <dd>Appends the character representation of the given pointer to the managed string.</dd>
            <dt id="a0f829bc716a2f490074ccb0a592822f7">
              <span class="m-doc-wrap-bumper">void <a href="#a0f829bc716a2f490074ccb0a592822f7" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">const nullptr_t&amp; null_ptr)</span>
            </dt>
            <dd>Appends the character representation of the given null pointer to the managed string.</dd>
            <dt id="a5be9efee3a7ba34f6df5112a9c39e03a">
              <div class="m-doc-template">template&lt;int Precision&gt;</div>
              <span class="m-doc-wrap-bumper">void <a href="#a5be9efee3a7ba34f6df5112a9c39e03a" class="m-doc-self">append</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1fixed__t.html" class="m-doc">fixed_<wbr />t</a>&lt;Precision&gt; value)</span>
            </dt>
            <dd>Appends the character representation of the given fixed point value to the managed string.</dd>
            <dt id="ab5295d43fff661534338d79111ff5f8d">
              <div class="m-doc-template">template&lt;typename Type, typename... Args&gt;</div>
              <span class="m-doc-wrap-bumper">void <a href="#ab5295d43fff661534338d79111ff5f8d" class="m-doc-self">append_args</a>(</span><span class="m-doc-wrap">const Type&amp; value,
              const Args&amp;... args)</span>
            </dt>
            <dd>Appends the character representation of the given parameters to the managed string.</dd>
            <dt id="a49181d2eaed41ec55f71130b005ac125">
              <div class="m-doc-template">template&lt;typename Type&gt;</div>
              <span class="m-doc-wrap-bumper">void <a href="#a49181d2eaed41ec55f71130b005ac125" class="m-doc-self">append_args</a>(</span><span class="m-doc-wrap">const Type&amp; value)</span>
            </dt>
            <dd>Appends the character representation of the given value to the managed string.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#af33c86c0fed20b359766f3b7faece55f" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1ostringstream.html" class="m-doc">ostringstream</a>&amp; other)</span>
            </dt>
            <dd>Exchanges the contents of this ostringstream with those of the other one.</dd>
          </dl>
        </section>
        <section id="friends">
          <h2><a href="#friends">Friends</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#ae9311e1d0a03f4125b88476f3b363cf2" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1ostringstream.html" class="m-doc">ostringstream</a>&amp; a,
              <a href="classbn_1_1ostringstream.html" class="m-doc">ostringstream</a>&amp; b)</span>
            </dt>
            <dd>Exchanges the contents of a ostringstream with those of another one.</dd>
          </dl>
        </section>
        <section>
          <h2>Function documentation</h2>
          <section class="m-doc-details" id="a8f81521ccd1120d85689c073c59ce0eb"><div>
            <h3>
              <span class="m-doc-wrap-bumper"> bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a8f81521ccd1120d85689c073c59ce0eb" class="m-doc-self">ostringstream</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a>&amp; string) <span class="m-label m-info">explicit</span> </span></span>
            </h3>
            <p>Constructor.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">string</td>
                  <td>string in which to append to.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="af31fbcf36483f91f4cf50b32c4b67579"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1istring.html" class="m-doc">istring</a>* bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#af31fbcf36483f91f4cf50b32c4b67579" class="m-doc-self">rdbuf</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a>* sb)</span></span>
            </h3>
            <p>Sets the managed string.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">sb</td>
                  <td>Pointer to new string to manage.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Pointer to new string to manage.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a514dc82cfe5f5792f4c09523b13017e9"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a514dc82cfe5f5792f4c09523b13017e9" class="m-doc-self">set_rdbuf</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a>&amp; sb)</span></span>
            </h3>
            <p>Sets the managed string.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">sb</td>
                  <td>Reference to new string to manage.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a58e80e461395697f4fe6970ac6dafd12"><div>
            <h3>
              <span class="m-doc-wrap-bumper">int bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a58e80e461395697f4fe6970ac6dafd12" class="m-doc-self">precision</a>(</span><span class="m-doc-wrap">int new_precision)</span></span>
            </h3>
            <p>Sets the decimal precision of fixed point operations.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">new_precision</td>
                  <td>New decimal precision.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>New decimal precision.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ad120c5053dc02170f63f4c67745541cb"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ad120c5053dc02170f63f4c67745541cb" class="m-doc-self">set_precision</a>(</span><span class="m-doc-wrap">int precision)</span></span>
            </h3>
            <p>Sets the decimal precision of fixed point operations.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">precision</td>
                  <td>New decimal precision.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="aa13ca7b94ff67d807335b7769de65ac1"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aa13ca7b94ff67d807335b7769de65ac1" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">char character)</span></span>
            </h3>
            <p>Appends an additional character to the managed string.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">character</td>
                  <td>Character to append.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="afc1690ecd21cfd32026425d727880d83"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ostringstream.html" class="m-doc">ostringstream</a>&amp; bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#afc1690ecd21cfd32026425d727880d83" class="m-doc-self">put</a>(</span><span class="m-doc-wrap">char character)</span></span>
            </h3>
            <p>Appends an additional character to the managed string.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">character</td>
                  <td>Character to append.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a4548d6e10b5f811b132888e04e5ffe67"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a4548d6e10b5f811b132888e04e5ffe67" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a>&amp; view)</span></span>
            </h3>
            <p>Appends additional characters to the managed string.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">view</td>
                  <td><a href="classbn_1_1string__view.html" class="m-doc">string_<wbr />view</a> to append.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a7ddce029580f612a453b995f8bd5b7c9"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a7ddce029580f612a453b995f8bd5b7c9" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1istring__base.html" class="m-doc">istring_<wbr />base</a>&amp; string)</span></span>
            </h3>
            <p>Appends additional characters to the managed string.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">string</td>
                  <td>string to append.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="aeb274c577acdeda96abd00c930e67e78"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aeb274c577acdeda96abd00c930e67e78" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">const char* char_array_ptr)</span></span>
            </h3>
            <p>Appends additional characters to the managed string.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">char_array_ptr</td>
                  <td>Pointer to null-terminated characters array.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a4a3c950042f60f95716033d192814b69"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a4a3c950042f60f95716033d192814b69" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">const char* char_array_ptr,
              int char_array_size)</span></span>
            </h3>
            <p>Appends additional characters to the managed string.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">char_array_ptr</td>
                  <td>Pointer to characters array.</td>
                </tr>
                <tr>
                  <td>char_array_size</td>
                  <td>Characters count of the characters array.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a3a81085c301435870815540918cd7755"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1ostringstream.html" class="m-doc">ostringstream</a>&amp; bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a3a81085c301435870815540918cd7755" class="m-doc-self">write</a>(</span><span class="m-doc-wrap">const char* char_array_ptr,
              int char_array_size)</span></span>
            </h3>
            <p>Appends additional characters to the managed string.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">char_array_ptr</td>
                  <td>Pointer to characters array.</td>
                </tr>
                <tr>
                  <td>char_array_size</td>
                  <td>Characters count of the characters array.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a489514e2ce5b7ca00b70b323b1612d63"><div>
            <h3>
              <div class="m-doc-template">
                template&lt;int MaxSize&gt;
              </div>
              <span class="m-doc-wrap-bumper">void bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a489514e2ce5b7ca00b70b323b1612d63" class="m-doc-self">append</a>(</span><span class="m-doc-wrap">char(&amp;char_array)[MaxSize])</span></span>
            </h3>
            <p>Appends additional characters to the managed string.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">char_array</td>
                  <td>Non empty const characters array.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="af33c86c0fed20b359766f3b7faece55f"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />ostringstream::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#af33c86c0fed20b359766f3b7faece55f" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1ostringstream.html" class="m-doc">ostringstream</a>&amp; other)</span></span>
            </h3>
            <p>Exchanges the contents of this ostringstream with those of the other one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td>ostringstream to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="ae9311e1d0a03f4125b88476f3b363cf2"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ae9311e1d0a03f4125b88476f3b363cf2" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1ostringstream.html" class="m-doc">ostringstream</a>&amp; a,
              <a href="classbn_1_1ostringstream.html" class="m-doc">ostringstream</a>&amp; b)</span></span>
            </h3>
            <p>Exchanges the contents of a ostringstream with those of another one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First ostringstream to exchange the contents with.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second ostringstream to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
        </section>
      </div>
    </div>
  </div>
</article></main>
<div class="m-doc-search" id="search">
  <a href="#!" onclick="return hideSearch()"></a>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-m-8 m-push-m-2">
        <div class="m-doc-search-header m-text m-small">
          <div><span class="m-label m-default">Tab</span> / <span class="m-label m-default">T</span> to search, <span class="m-label m-default">Esc</span> to close</div>
          <div id="search-symbolcount">&hellip;</div>
        </div>
        <div class="m-doc-search-content">
          <form>
            <input type="search" name="q" id="search-input" placeholder="Loading &hellip;" disabled="disabled" autofocus="autofocus" autocomplete="off" spellcheck="false" />
          </form>
          <noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.</noscript>
          <div id="search-help" class="m-text m-dim m-text-center">
            <p class="m-noindent">Search for symbols, directories, files, pages or
            modules. You can omit any prefix from the symbol or file path; adding a
            <code>:</code> or <code>/</code> suffix lists all members of given symbol or
            directory.</p>
            <p class="m-noindent">Use <span class="m-label m-dim">&darr;</span>
            / <span class="m-label m-dim">&uarr;</span> to navigate through the list,
            <span class="m-label m-dim">Enter</span> to go.
            <span class="m-label m-dim">Tab</span> autocompletes common prefix, you can
            copy a link to the result using <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">L</span> while <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">M</span> produces a Markdown link.</p>
          </div>
          <div id="search-notfound" class="m-text m-warning m-text-center">Sorry, nothing was found.</div>
          <ul id="search-results"></ul>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="search-v2.js"></script>
<script src="searchdata-v2.js" async="async"></script>
<footer><nav>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <p>Butano Docs. Created with <a href="https://doxygen.org/">Doxygen</a> 1.14.0 and <a href="https://mcss.mosra.cz/">m.css</a>.</p>
      </div>
    </div>
  </div>
</nav></footer>
</body>
</html>
